package com.train.order.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * ConfirmOrderPageResp
 * @author baitiaojun
 * @createDate 2025-03-11 21:07:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ConfirmOrderPageResp {

    /**
     * id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 会员id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long memberId;
    /**
     * 日期
     */
    private LocalDate date;
    /**
     * 车次编号
     */
    private String trainCode;
    /**
     * 出发站
     */
    private String start;
    /**
     * 到达站
     */
    private String end;
    /**
     * 余票ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long dailyTrainTicketId;
    /**
     * 车票
     */
    private String tickets;
    /**
     * 订单状态|枚举[ConfirmOrderStatusEnum]
     */
    private String status;
    /**
     * 新增时间
     */
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
}
